#ifndef _LYJ_TYPES_H_INCLUDE_
#define _LYJ_TYPES_H_INCLUDE_

#include <sys/types.h>
#include <stdint.h>


typedef char				lyj_int8_t;
typedef unsigned char		lyj_uint8_t;
typedef short				lyj_int16_t;
typedef unsigned short		lyj_uint16_t;
typedef int					lyj_int32_t;
typedef unsigned int		lyj_uint32_t;
typedef long long			lyj_int64_t;
typedef unsigned long long	lyj_uint64_t;
typedef long				lyj_long_t;
typedef unsigned long		lyj_ulong_t;

typedef float               lyj_float_t;
typedef double              lyj_double_t;

typedef intptr_t			lyj_intptr_t;
typedef uintptr_t			lyj_uintptr_t;
typedef size_t				lyj_size_t;

#ifdef  _WIN64
typedef signed __int64    ssize_t;
#elif defined(_WIN32)
typedef _W64 signed int   ssize_t;
#endif

typedef ssize_t				lyj_ssize_t;

typedef off_t               lyj_off_t;
typedef lyj_intptr_t		lyj_int_t;
typedef lyj_uintptr_t		lyj_uint_t;
typedef lyj_int8_t			lyj_char_t;
typedef lyj_uint8_t			lyj_uchar_t;
typedef lyj_uchar_t			lyj_buf_t;
typedef lyj_char_t			lyj_bool_t;

typedef lyj_int16_t			lyj_wchar_t;

#define LYJ_FALSE			0
#define LYJ_TRUE			(!LYJ_FALSE)

typedef enum 
{
	LYJ_RET_ERROR = -1,
	LYJ_RET_OK,
	LYJ_RET_MAX
} lyj_ret_t;

#endif /* _LYJ_TYPES_H_INCLUDE_ */
